import request from "@/api/index"

export default{
  /**
   * @description: 添加 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/batch/fishOutTask/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/batch/fishOutTask/edit"
    return request.post(url,params)
  },
  /**
   * @description: 审核 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  audit(params){
    const url = "/batch/fishOutTask/audit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 出鱼任务是否完成 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  fishOutTask(params){
    const url = "/batch/fishOutTask/complete"
    return request.get(url,params)
  },
  /**
   * @description: 置为未审核 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  resetAudit(params){
    const url = "/batch/fishOutTask/resetAudit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 批量删除 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/batch/fishOutTask/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/batch/fishOutTask/delById"
    return request.get(url,params)
  },
  /**
   * @description: 获取可关联的出鱼任务列表 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryTaskList(params){
    const url = "/batch/fishOutTask/queryTaskList"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/batch/fishOutTask/queryByCondition"
    return request.post(url,params)
  },
  /**
   * @description: 分页查询 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/batch/fishOutTask/queryPageByCondition"
    return request.post(url,params)
   },
  //  ------------------ 出鱼详情相关接口 ----------
  
  /**
   * @description: 查询详情 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  addDetail(params){
    const url = "/batch/fishOutTaskDetail/add"
    return request.post(url,params)
  },
  /**
   * @description: 查询详情 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  editDetail(params){
    const url = "/batch/fishOutTaskDetail/edit"
    return request.post(url,params)
  },
  /**
   * @description: 查询详情 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryDetail(params){
    const url = "/batch/fishOutTaskDetail/queryByCondition"
    return request.post(url,params)
  },
}